package org.thanos.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
public class SysRole {

    private static final List<SysRole> LISTS = new ArrayList<>();

    static {
        LISTS.add(new SysRole(1, "管理员"));
        LISTS.add(new SysRole(2, "普通用户"));
    }

    private Integer id;
    private String name;

    public static List<SysRole> data(){
        return LISTS;
    }
}
